package com.day03;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        lo:
        while (true) {
            System.out.println("请输入月份:");
            System.out.println("如果输入0,则退出");
            int num = sc.nextInt();
            switch (num) {
                case 0:
                    System.out.println("正在退出....");
                    break lo;
                case 12:
                case 1:
                case 2:
                    System.out.println("冬");
                    break;
                case 3:
                case 4:
                case 5:
                    System.out.println("春");
                    break;
                case 6:
                case 7:
                case 8:
                    System.out.println("夏");
                    break;
                case 9:
                case 10:
                case 11:
                    System.out.println("秋");
                    break;
                default:
                    System.out.println("您输入的信息有误!");
                    break;
            }
        }
    }
}






































